#include "Input.h"
#include "InputManager.h"
#include <windows.h>
void GetShiftState(unsigned int _keys, TShiftState &_state)
{
	memset(&_state, 0, sizeof(_state));
	if ((_keys & MK_SHIFT))
	{
		_state.IsShift = 1;
	}
	if (_keys & MK_CONTROL)
	{
		_state.IsCtrl = 1;		
	}
	if (_keys & MK_LBUTTON)
	{
		_state.IsLbtn = 1;
	}
	if (_keys & MK_RBUTTON)
	{
		_state.IsRbtn = 1;
	}
	if (_keys & MK_MBUTTON)
	{
		_state.IsMbtn = 1;
	}
	if (_keys & 0x20000000)
	{
		_state.IsAlt = 1;
	}

	_state.IsShift= (GetKeyState(VK_SHIFT) & 0x80)!=0; 
	_state.IsCtrl= (GetKeyState(VK_CONTROL) & 0x80)!=0;
	_state.IsAlt= (GetKeyState(VK_MENU) & 0x80)!=0;

}
void OnMouseMove(unsigned int _lParam, TShiftState _state)
{
	if(_state.IsLbtn);
}

void OnMouseDown(unsigned int _lParam, TShiftState _state)
{
	int t_x = LOWORD(_lParam);
	int t_y = HIWORD(_lParam);
	OnMouseDownManager(t_x, t_y);
}
void OnMouseUp(unsigned int _lParam, TShiftState _state)
{

}